count function

Construct, coerce, and test for a count object