Oracle Message OCI-22318 - input type is not an array type

ERRORinput type is not an array type
CAUSEThe user is trying to obtain the number of elements for a non-array type.
ACTIONPass in only a named collection type which is an array.