Dependencies: perl modules, to be installed from the package manager of your distribution or from CPAN:
Usage: run mpd-stats.pl in the background, and it will automatically add the information about what mpd is playing in a database (the default location is ~/.mpd-stats/mpd-stats).
To obtain statistics about what you have listened, simply run generate-stats.pl. You can customize the results by changing the @criteria, @orders and $to_display variables in the first lines of generate-stats.pl (a more powerful configuration system should be added soon). It can generate HTML or simply output the stats on the console.
If you run into any trouble or need new features, don't hesitate to contact me.