wrote method to update popularity of tweets