added interrupt method for bubble counter.