Just one, although there is a separate line to clear passport control into the non-Schengen terminal areas. In any case, lines move rapidly at FRA.
You will, however, have to endure questioning by a security 'contractor' before checking in at the counter, something you'd avoid by flying Lufthansa.