Larry,
This code does exactly what you wanted it to do, but if you look back at the assignment, it's asking you to do this for the dict from Series 1. So you'll have to make a copy of that and figure out a way to iterate over the keys and values, checking for the number of 'a's in the values and then replacing the value with that number.
Thanks!