Effects based on a weapon's number of damage dice include only the weapon's damage die plus any extra dice from the weapon's type (tactical, advanced, superior, elite, ultimate, and paragon). They don't count extra dice from abilities, critical specialization effects, weapon traits, or the like.