Thanks to Joerg for pointing out pkg-nums.
I was pretty sure such a tool already existed but could not find it.
At least, my script (with Thomas’ amendments) allow distinctions between sections (free, contrib, non-free)
And thanks to pkg-nums, I was able to check the results.
Well. If you want to, I love patches to dak, so feel free to submit one making the stats output more data