count method - fixed