fixed footer count for grid last page

https://github.com/PrimeRevenue/tent/pull/417