made aaf a list, changed to use Counter