adds a function which returns array including number of new words per month