Note on the number of solutions of an equation