A C port of https://github.com/will-in-wi/toilet-stats