test count method