Don't count objects if pagination is disabled