Credit score

I have three major credit cards, and two store cards.  Is it better to close the store cards and keep to one or two of the major cards?  The store cards have no balance at the moment.   I ask because i always thought it was better on your credit score if you the customer closed accounts,  also the less open lines of credit you have the better.  true/false