added method to write out profession count list (writeProfessions(String)) in HDFSUtils.java