I fixed the regexp code, so it works now! I also added a dictionary to keep count of the name frequencies