Large deviations of ergodic counting processes: a statistical mechanics approach - Adrian A. Budini (Physical Review E, 2011)