1. Large deviations for counting processes