defining word counter
specifying word counter
printing word counter