Counting in context