return int for count method