Added Counter

Added counter variable to do x number of tests then stop