add counting to index page