According to Dictionary.com, it counts.

Quote Originally Posted by Dictionary.com
Hat:
1. A covering for the head, especially one with a shaped crown and brim.