I have two models in my CakePHP application: `NewsArticle` and `Image`. `Image` is associated with `NewsArticle` using a HABTM (has and belongs to many) association, so authors can build up a gallery for an article if they wish.

On my application’s homepage I want to display the top story, which will simply be the latest published article with at least one associated image. How would I form this condition in my controller? So far, I have:

```
<?php
$topStory = $this->NewsArticle->find('first', array(
    'order' => array(
        'NewsArticle.created' => 'desc'
    )
));

```

But I am unsure how to “count” the number of `Image` records attached to my `NewsArticle` model.