code: public static <T> int count(final T[] array, final T target) {
  
      int count = 0;
      if (isNotEmpty(array)) {
        for (T element : array) {
          if (JudgeUtils.equals(element, target)) {
            count++;
          }
        }
      }
      return count;
    }
docs: 统计数组中包含指定元素的个数。Count how many given target in given array.
  
  @param array 源数组。source array.
  @param target 想要被统计的元素。element want to count.
  @return 数组中包含指定元素的个数。the count of given target in given array.