Map mc = (Map) c;
Map m = (Map) p0;
    static int get_map_element_count(java.lang.Object c, java.lang.Object n) {        int count = 0;        Map mc = (Map) c;        if (mc != null) {            java.lang.Object[] a = mc.names;            int i = 0;            int size = ArrayHandler.get_array_size(a);            java.lang.Object name = null;            while (i < size) {                name = ArrayHandler.get_array_element(a, i);                if (name != null) {                    if (((java.lang.String) name).startsWith((java.lang.String) n)) {/*??                        int begin = 0;                        java.lang.String sub = null;                        int number = 0;                                    begin = ((java.lang.String) name).indexOf("_");                        sub = ((java.lang.String) name).substring(begin + 1);                        number = Integer.parseInt(sub);                        if (number > count) {                            count = number;                        }*/                        count++;                    }                } else {                    // Reached last valid name. Only null entries left.                    break;                }                i++;            }        } else {            java.lang.System.out.println("ERROR: Could not get element count. The map is null.");        }        return count;    }