hg commit count in a directory

Today I needed to find the number of commits per file in a directory. Doing that by going into each files’ mercurial log and counting manually is a incredibly boring chore. But, the following PowerShell script came to save my life:

If gist embed is not working above, click here.