Queen Elizabeth II has worn about 5,000 different hats over the past 50 years. The hats represent more than simply a fashion statement.