Index: /trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java	(revision 521)
+++ /trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java	(revision 522)
@@ -145,4 +145,13 @@
 	}
 
+	private static class NodeCount extends Match {
+		private int count;
+		public NodeCount(int count) {this.count = count;}
+		@Override public boolean match(OsmPrimitive osm) {
+			return osm instanceof Way && ((Way) osm).nodes.size() == count;
+		}
+		@Override public String toString() {return "nodes="+count;}
+	}
+
 	private static class Modified extends Match {
 		@Override public boolean match(OsmPrimitive osm) {
@@ -261,4 +270,6 @@
 		} else if (key.equals("user")) {
 			return new UserMatch(value);
+		} else if (key.equals("nodes")) {
+			return new NodeCount(Integer.parseInt(value));
 		} else if (key.equals("id")) {
 			try {
