I need to calculate the number of pipes '|' coming in my expression.
My expression consists of alphanumeric text including special charactres seperated by colon ':'
W1:W2|W3:W4|W5:W6 .. likewise
I need to calculate number of pipes '|' occuring in them