Definition of "public accounting firm"

I was wondering which firms can call themselves "public accounting firms." Do they have to be registered with the PCAOB to call themselves this? Would a firm that only audits non public and/or non-profit clients still be considered a public accounting firm if they have a CPA on staff? What if the only CPA in the firm is not a partner? Sorry about all the questions.