Added support for limiting the number of posts in the feed

Fixed implementation :)