The setting you're looking for is in Tools -> Options -> Environment -> General (Items shown in recently used lists)
. Note that when you change the setting to a lower number that you had before, VS will delete the excess items from your list (not just hide them) so when you revert your setting the items won't show up until you explicitly open them again.
Quick test on my local machine confirms that this setting works with VS 2010.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…