Take in number of tweets as a parameter