Convert to a Size type up to Size2 returning the count of the elements provided in the input.
object
Size2
int
bool