A couple of utilities for generating statistics.