Hello Kmanoj,
and welcome to the JavaRanch
Maybe it would be sufficient to configure the Tomcat valve (in the server.xml file) to write an access log and use one of many tools available to analyze the aggregated logs for the time you want to count hits. The Tomcat valve in question is capable of writing access logs in common or combined format just like the famous Apache web server. So there should be enough tools to analyze these logs.
Of course it depends on your requirements. In particular if an access log really provides the information you need.
Marco