casper has an abstracted method for this

```test.assertElementCount('.related__container .item__container', 5);```