Is there a way to "audit" assets on MV?

I want to produce an audit of my game.

Essentially, what I want to know is how many assets it uses - how many tile sprites, character sprites, music tracks, SFX...

Some of these things are easy. Like, for Pictures, I can just count the pictures in the folder. But the tiles in particular are problematic, because I can't just count the tilesets I use - because like everyone, I probably only use maybe 20% of a tileset in a given map.

What I'm trying to calculate are the number of tiled assets I'd need if I was going to remake all my visuals, so I don't need a totally accurate list, just a ballpark.

I could count manually, or similar, but as this will take a while, before I do that... Has anyone here ever done this? Is there an easy way?
theoretically it is possible to have a program analyse the mapfiles for the tile-ids. But I don't know of such a program, and it has to be automated as it is difficult to read the json files by hand.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-audit-assets-on-mv.129452/