How to get bar repeat counts without the symbols