add pain counter checker in pain service