public static HashMap<Character, Integer> countCharacters(Scanner input)
	{
		String s;
		HashMap<Character, Integer> map = new HashMap<Character, Integer>();
		
		while (input.hasNext())
		{
			s = input.next();
			for(char c: s.toCharArray())
			{
				Integer value = map.get(c);
				if(value == null)
					value = new Integer(1);
				else
					value ++;
				map.put(c, value);
				
			}
		}
		return map;
		
	}