private static int annotatedFieldsNumber(Class<?> aClass){
  int count=0;
  for (  Field it : aClass.getDeclaredFields())   if (it.getAnnotation(JMap.class) != null)   count++;
  return count;
}

private static int annotatedFieldsNumber ( Class < ? > aClass ) { int count = 0 ; for ( Field it : aClass . getDeclaredFields ( ) ) if ( it . getAnnotation ( JMap . class ) != null ) count ++ ; return count ; }
returns tha number of annotated fields belong to the class given in input .
