Ruby on Rails
PhpCount

Use Array#length:


[1, 2, 3, 4].length #=> 4