Gathering more detailed user statistics

Hi - I am fairly new to Openfire and see from the admin interface that the statistics available are fairly generic. Does anyone know if there is a way to obtain details of, say, how many times a user has posted a comment? I’d be interested to know if anyone has needed to craft a mysql query if such statistics are not yet available from from the mgmt interface.

Thanks in advance.