Oracle Solution for Error ora-22318

Solution for Oracle Error ORA-22318

ORA-22318: input type is not an array type

What triggered the Error:

e user is trying to obtain the number of elements for a non-array type.

What should we do to fix it:

ss in only a named collection type which is an array.