src/main/java/org/fest/assertions/ArrayInspection.java
public static int sizeOf(@NotNull Object array) {
    checkNotNull(array);
    validateIsArray(array);
    return getLength(array);
  }
public static int sizeOf(@NotNull Object array) {
    checkNotNull(array);
    validateIsArray(array);
    return getLength(array);
  }
Returns the size of the given array.

@param array the array.
@return the size of the given array.
@throws NullPointerException     if the given array is {@code null}.
@throws IllegalArgumentException if the given object is not an array.