Syallbus is an Anki add-on which can produce statistics from a collection to the tag level.

The source can be found here, or installed with code 668156440.