change getRecentPosts to take count