added basic count method, ref #90