20141230 - Fixed date count function - index page