fixed footer count for grid last page

https://github.com/PrimeRevenue/tent/pull/417 - Changes for release version of tent