Count method for Array controller

Implement count() method for array controller.
Strangely it wasn't there already :)