diff --git a/lib/nodes.js b/lib/nodes.js
index <HASH>..<HASH> 100644
--- a/lib/nodes.js
+++ b/lib/nodes.js
@@ -392,6 +392,11 @@ ClassList.prototype.get = function (name) {
     this.collections[name] : [];
 };
 
+ClassList.prototype.count = function (name) {
+  return Object.prototype.hasOwnProperty.call(this.collections, name) ?
+    this.collections[name].length : 0;
+};
+
 ClassList.prototype.set = function (name, node) {
   if (Object.prototype.hasOwnProperty.call(this.collections, name)) {
     this.collections[name].push(node);
[feature] add classlist count method