Fixing query->size and adding query->shownCount