It's possible aggregations (like count) only operate over the current page, so if you have paging enabled you can get weird results.