The magic number is, as of this afternoon, 10.
As of the conclusion of last night's game against the Diamondbacks, the Pirates have 72 wins, with about 6 weeks of the season left to go. 10 more wins guarantees them their first winning season in 20 years.
You know, it's hard to send CW when you're keeping your fingers crossed...