20141205 - Fixed date count function - index page