added counter to keep track of # locations found