Fixed counter checking for counters with '|' in the name
This should fix tests in Gauss (lhcb-gauss-dev slot) where the counter parsing fails. E.g. gauss-config-2015-pythia8
This is an extra fix on top of !2324 (merged). So should only be merged after it
Edited by Rosen Matev