added test for count method, ref #90