Index: trunk/FACT++/scripts/doc/String.js
===================================================================
--- trunk/FACT++/scripts/doc/String.js	(revision 15151)
+++ trunk/FACT++/scripts/doc/String.js	(revision 15152)
@@ -100,2 +100,23 @@
  */
 String.prototype.$ = function() { /* [native code] */ };
+
+/**
+ * Like String match, but return the number counts how often
+ * the regular expression matches.
+ *
+ * @param {String} regex
+ *     The regular expression to search for, e.g., "s" (to count the s's) or
+ *     "As+A" (to count how often s's are surrounded by A's)
+ *
+ * @param {Boolean} [case=false]
+ *     Search is case insensitive if set to true.
+ *
+ * @returns {Interger}
+ *     The number of occurances of the regular expression
+ *
+ * @example
+ *    var result = "Thomas Bretz".count("[hme]"); // returns 3
+ *
+ * @author <a href="mailto:thomas.bretz@epfl.ch">Thomas Bretz</a>
+ */
+String.prototype.count = function() { /* [native code] */ };
