Uh-oh!

Cannot call getTotalCount() before the query is executed