Fixed bug with post counter

Before was stuck at grabbing 10 posts. Now it grabs all by batching
pages and totaling them.