<jupyter_start><jupyter_text>Now You Code 1: Word CountLet's write a program which takes a file name as input, counts the number of words in the file, then outputs the word count.The program should handle `FileNotFoundError` as an exception in case you enter a file that does not exist.Sample Run 1:```Word Count!Enter Filename: NYC1-romeo.txtThere are 33 words in NYC1-romeo.txt```Sample Run 2:```Word Count!Enter Filename: testingFile Not Found: testing```Try these files:- `NYC1-NYC1-cant-stop-the-feeling.txt`- `NYC1-preamble.txt`- `NYC1-romeo.txt` or - `NYC-zork.txt`**HINT**: Read in the file a line at a time, then split the line into words and count each word. Start out the program by writing your initial todo list (without the try...except)<jupyter_code>## TODO List Here
  

## Write Code Here<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09820359281437126, 'fraction_numerical': 0.013173652694610778, 'mean_word_length': 4.929078014184397, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '608045', 'license': 'MIT', 'n_tokens_mistral': 270, 'n_tokens_neox': 256, 'n_words': 109, 'path': 'content/lessons/08/Now-You-Code/NYC1-Word-Count.ipynb', 'repo_name': 'yajiao-su/istpytonproject', 'size': '835'}