diff --git a/library/CM/Db/Db.php b/library/CM/Db/Db.php
index <HASH>..<HASH> 100644
--- a/library/CM/Db/Db.php
+++ b/library/CM/Db/Db.php
@@ -42,7 +42,7 @@ class CM_Db_Db extends CM_Class_Abstract {
 	public static function count($table, $where = null) {
 		$client = self::_getClient(false);
 		$query = new CM_Db_Query_Count($client, $table, $where);
-		return $query->execute()->fetchColumn();
+		return (int) $query->execute()->fetchColumn();
 	}
 
 	/**
Fixed CM_Db_Db::count
- Casted result to Integer

Conflicts:
	library/CM/Db/Db.php