Modified Post model recent method to accept a number of posts to display