count method