Add count column to aggregate output. Closes #111.