SAN FRANCISCO — Business is brisk these days for Michael Rains.

With police scandals popping up in Contra Costa and San Francisco counties, Rains has been busy representing individual police officers and police unions in both places.