Front page entry counter

The counter for number of entries is now working. Feel free to merge.