C++ managed array size
Function in your case:
function(array<Object^>^ a) { auto len = a->Length}
Remember that All of you classes are from the .net library so in the general case you can allays looks at the generic .net documentation. Here is the array class docs.