Index: trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java	(revision 8230)
+++ trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java	(revision 8231)
@@ -954,5 +954,5 @@
         @Override
         protected Long getNumber(OsmPrimitive osm) {
-            if (osm instanceof Way) {
+            if (osm instanceof Node) {
                 return (long) Utils.filteredCollection(osm.getReferrers(), Way.class).size();
             } else if (osm instanceof Relation) {
