text: const CustomError = require("../extensions/custom-error");
  
  module.exports = function countCats(backyard) {
    let cat = "^^";
    let k = 0;
    for (i = 0; i < backyard.length; i++) {
      for (j = 0; j < backyard[i].length; j++) {
        if (cat === backyard[i][j]) {
          k++;
        }
      }
    }
    return k;
  };
  