defining count