Appropriate kernel regression on a count explanatory variable and applications