count to 0.a and b and store it in minValue.minValue inclusive.
a. For each number i, check if i divides both a and b without a remainder.
b. If i is a common factor, increment count by 1.count as the total number of common factors.