Added url param to specify number of posts to retrieve