The above quote is an example of D. PERSONIFICATION.
Personification is giving human characteristics or traits to animal, object, or idea.
The inanimate objects are ten thousand and waves. Tossing heads, sprightly dance, in glee are human traits given to the inanimate objects.