function getComponentCount(classProperty) {
  if (!classProperty.isArray) {
    return MetadataType.getComponentCount(classProperty.type);
  }
  return classProperty.arrayLength;
}
Returns the component count for the given class property, or
its array length if it is an array.

This will be
`[1, 2, 3, 4]` for `[SCALAR, VEC2, VEC3, VEC4`] types,
or the array length if it is an array.

@param {MetadataClassProperty} classProperty The class property
@returns {number} The component count
@private