add #times utility method.

_(3).times(alert)

added tests and internal docs
(cherry picked from commit 5a5e14d7a4e3c9271575acae3048cb7e8096ff72)