javascript code to work out how many tweets a user does a day