just quickly:
1) use some web server log analyzer if you can access the logs - there are many, they are quick, efficient, reliable...mostly :-)
2) store some interim results in a separate table
(a montly/weekly/daily breakdown and update it montly/weekly/daily)
3) have a 'totals' table and update it on each hit, instead of storing all hits like a log in the db. Just save the log into a file if you indeed want to keep it. But if you have the apache log that may be just as good.
Be careful not to update it with select/update if you do this, but use the method update hitCount=hitCount+1
There may be other good solutions, including indexing the current log db for the query you want to run on it...it may help heaps.