returns the size of an array or the number of properties of an object