count the number of item in value type.
count the number of item in value type. Actual semantics of this method varies.