docs: public static int count(float[] array, float val) {
          int count = 0;
          for (int i=0; i<array.length; i++) {
              if (array[i] == val) {
                  count++;
              }
          }
          return count;
      }