It all depends on how you count them. He uses close to 30,000 in the plays alone, including proper names. There were probably a lot more that he understood but didn't use (what is known as "passive...
Approximately 335 words can be made from the name "Shakespeare" though none of those are anagrams and some are obscure terms relating to currency and other specific disciplines.