Add max-count directive that adds word count tally after an input. Fixes #136.