Example from BIKI
_found = [1,9,8,3,4,4,4,5,6]; {_x==4} count _found; // returns 3
Please note that "_x == _type" in ArmA (2) is just a string, not code. This behaviour changed from OFP.
And it will run in a different scope, so the access to a local variable may not be guaranteed