New global function getCount() returns count of Countable objects and arrays