How should startups pay their attorney?

Startups are often cash-strapped in their early days, but it’s usually during those times that they most desperately need legal counsel. So what’s the best way to compensate those professionals for their time?