2y+3x-5x^2-g contains 4 terms that cannot be further simplified without know the values for the variables y, x, and g. Although 3x and -5x^2 contain the same variable x, since they have have different exponents, we can not directly add them together without knowing the value of x.
The answer is 4.