How about
```
  return this._cards.filter(function(card) {
    return card.rank == rank;
  }).length;
```