See IRTK's [labelStats](https://github.com/BioMedIA/IRTK/blob/06d1a6d651433395ef0f4f7fb5fa15ae25dc0a64/applications/labelStats.cc). (CC @soundray)
See IRTK's labelStats. (CC @soundray)