added new_epochs parameter to EpochCounter and unit test
fixed docstring
Merge pull request #823 from bouthilx/epochs_counter

added new_epochs parameter to EpochCounter