There are some similar Custom Stats to this but for other sites available for download from the
Repository.
I suggest you download one of those and see how it is built and then duplicate it and change it as you need to for Tower.
Custom Statistics and Reports FAQ.