Add testcase for count method.