Let $f, g \in \mathbb{Z}[x]$ be coprime polynomials. 
I am interested in an upper bound for 
$$
N(B) = \# \{  x \in [-B, B] \cap  \mathbb{Z}: f(x)|g(x) \}. 
$$
I assume there must be something known about this quantity... If someone could provide me a reference it would be appreciated. Thank you

ps I assume $\deg f > 0$.