Added support for count() and arrays.