DATAGRAPH-323 fix: count query is also executed when the number of
elements is smaller than the page size
Merge pull request #100 from TimmyStorms/master

DATAGRAPH-323 total elements count fix