Draw X cards, where X is the number of card types among cards in your graveyard.
A card can have more than one type. For example, an artifact creature in your graveyard counts as both types for Lucid Dreams' effect.
Card types that can appear on cards in a graveyard include artifact, creature, enchantment, instant, land, planeswalker, sorcery, and tribal. Legendary, basic, and snow are supertypes, not card types; Vedalken and Wizard are subtypes, not card types.
Lucid Dreams is still on the stack and not in your graveyard as you calculate the value of X.