Counting candles

Hi

does anyone knows an indicator that allow to count sequence of bull/bear bars and gave an alert when a specific value of bars sequence is achieved ?