Regression models for repeated event data: an application to accident frequencies of railway workers