code: @Override
      public long count(String type) {
          if ((type != null) && (!type.isEmpty()) && (!UNDEFINED.equalsIgnoreCase(type))) {
              return dashboardRepository.countByTypeContainingIgnoreCase(type);
          } else {
              return dashboardRepository.count();
          }
      }
docs: Get count of all dashboards, use dashboard type if supplied
  
  @param
  @return long