Use int counter, then double check to see if both conditions are true