It's not about quantity, but more about quality. Your website needs to offer better content than others on the first page of search results for the keywords you are targeting. You also need to have higher quality links than your competitor. If they have 30 low-quality links, and you have 5 high-quality links, you could still outrank them.