the max number of icloud accounts you can set up on iphone 5
I'd have tried a bit harder to get my original IDs back - as everything you bought with them is currently in the hands of someone else. 

Contact Apple.  

The answer to your question is 3, but that's not the point. Apple can override that if you can persuade them.