Three times. There is a very small, not extensively developed branch of life that has a separate primary symbiogebesis event (incorporating cyanobacteria) in the very recent evolutionary past, separate from mitochondria and chloroplasts:
https://en.m.wikipedia.org/wiki/Paulinella