script to count number of sentences per command