class CollectionUtil {

    public static int enumerationSize(Enumeration<?> keys) {
        int n = 0;
        while (keys.hasMoreElements()) {
            keys.nextElement();
            n++;
        }
        return n;
    }

    private  CollectionUtil();

}