The Hilbert number of a class of differential equations