Feed::count
Number of posts added
Description
public int Feed::count()
Returns the number of posts added.
Example
Controller
use Fegg\Tool\Feed;
$feed = new Feed('News', '/news/');
foreach ($rows as $row) {
$feed->add(array('title' => $row['title'], 'link' => '/news/post_' . $row['news_id'] . '.html'));
}
$feed->count(); // count($rows)