text: debugger;
  
  /**
   * Given matrix where you have to find cats by ears "^^"
   *
   * @param {Array<Array>} matrix
   * @return {Number} count of cats found
   *
   * @example
   * countCats([
   *  [0, 1, '^^'],
   *  [0, '^^', 2],
   *  ['^^', 1, 2]
   * ]) => 3`
   *
   */
  export default function countCats(matrix) {
      let count = 0;
      matrix.forEach(elem => {
          if (Array.isArray(elem)) {
              elem.forEach(item => {
                  if (item == '^^') count++
              })
          }
      });
      return count;
  }
  