A function is a relation where each value in the domain is associated with an unique value in the range, that is, one domain value can't be associates with two differente range values. This is why the answer is 6, that way the definition of a function will be acomplished.
Therefore, the answer is H. 6.