better word count functions
adding print_directory iterator