modifies #first and #last to accept a count as a second parameter of times