I am working with a CMS. In order to show some list content I need a count on the list items to spread them evenly over the page. I did this function: