Gets the size of a field's content. Behaviour depends on whether it is used on a vector or scalar field.