You can accomplish this through JQuery very easily.
In the accepted answer to this question, a simple method has been written to do this for you. It does a deep search on the JSON object and then outputs all of the matching objects into an array. Getting the length of this array will give you the number of occurrences like you would like.
function getObjects(obj, key, val) {
var objects = [];
for (var i in obj) {
if (!obj.hasOwnProperty(i)) continue;
if (typeof obj[i] == 'object') {
objects = objects.concat(getObjects(obj[i], key, val));
} else if (i == key && obj[key] == val) {
objects.push(obj);
}
}
return objects;
}
//put in the desired object name for ObjectName
//if the object is a string just use JSON.parse(ObjectName) to convert it to a javascript object
getObjects(ObjectName, "furnitire", "Furniture Transactions").length;