Index: trunk/src/org/openstreetmap/josm/data/validation/tests/Lanes.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/tests/Lanes.java	(revision 6645)
+++ trunk/src/org/openstreetmap/josm/data/validation/tests/Lanes.java	(revision 6647)
@@ -31,5 +31,5 @@
 
     static int getLanesCount(String value) {
-        return value.isEmpty() ? 0 : value.split("\\|").length;
+        return value.isEmpty() ? 0 : value.replaceAll("[^|]", "").length() + 1;
     }
 
