Then write a script (wrapper) that determines how many messages a given Math Doctor sent in each month. The shell script will take the name of a Math Doctor as an argument and then returns the number of messages the specified Math Doctor sent each month, using the machinery you just created.
Make sure your script checks to see if a Math Doctor is given as an argument - if not a usage message should be printed and the script exited.