private static Map<String, Integer> count() {
        Map<String, Integer> p = new LinkedHashMap<String, Integer>();

        StringTokenizer st = new StringTokenizer(text, " ");
        while (st.hasMoreTokens()) {
            String s = st.nextToken();
            Integer i = p.get(s);
            p.put(s, i != null ? ++i : 1);
        }

        return p;
    }