Adds the total count as an option for views