Update When.php

Minor bugfix: if a count is set as part of the RRULE, the internal counter needs to be reset, otherwise no new dates are returned.