Fixed count of result set to be different from totalCount

Fixes #50