One. Stealth Rock will do nothing if you attempt to place a second layer.
I guess Stealth Rock would be overpowering if you could place more layers; a Pokémon with a x4 weakness to Rock would die on the second time it switches in.