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.
Merge pull request #12 from UltraSimplified/master

Reset internal counter when a COUNT rule is specified