code: private void updateStatistic(OIndex<?> index) {
      if (OProfiler.getInstance().isRecording()) {
        OProfiler.getInstance().updateCounter("Query.indexUsage", 1);
        final int paramCount = index.getDefinition().getParamCount();
        if (paramCount > 1) {
          OProfiler.getInstance().updateCounter("Query.compositeIndexUsage", 1);
          OProfiler.getInstance().updateCounter("Query.compositeIndexUsage." + paramCount, 1);
        }
      }
    }
docs: Register statistic information about usage of index in {@link OProfiler}.
  
  @param index
  which usage is registering.