Automatically calculate number of events in apps (#1072)* Automatically calculate number of events in apps* Address review feedback* Fix counting of events from HepMC3 file- `Reader::skip()` was added in HepMC3 version 3.2.0: use `read_event()` to count with older versions- Fix count and validate for zero events