Counting in bases less than ten