code: protected int countComponentContainPaxWicketBeanAnnotatedOneLevel(Class<?> component) {
          Class<?> clazz = component;
          int numberOfInjectionFields = 0;
          for (Field field : clazz.getDeclaredFields()) {
              if (field.isAnnotationPresent(Inject.class)) {
                  numberOfInjectionFields++;
              }
          }
          return numberOfInjectionFields;
      }
docs: <p>countComponentContainPaxWicketBeanAnnotatedOneLevel.</p>
  
  @param component a {@link java.lang.Class} object.
  @return a int.