Use Countable interface.
Draft with SplFixedArray.