I think you can fit 4. It depends on the kind of pepper, though. Some pepper plants get bigger than others.
What kind of bed do you have? If it's a raised bed and you can walk all the way around it, I would put 4 plants in. If you have to be able to walk between the plants, 3 might be a better...