This method of the Errors class retrieves the number of objects in a collection.
public int getCount();