A link is a link, but of course all things being equal the quality of the link (relevance to topic and PR) is trumps.
Google: Quality Yahoo: Quantity Therefore, if you have a large sum of decent quality backlinks, you rank well for both.
Quality over quantity, although when your site becomes an authority site, with vast amounts of people independently linking to your site then you'll be happy to accept quantity too.