How old was Carrie Underwood on American Idol?

I think she was 22 years old when she won American Idol.