Nonparametric kernel estimation in counting processes with explanatory variables