Which research or which options in game to have more than 4 heroes to defense your castle?
I've seen people with 6 heroes in their castle.
An ally from your guild can provide some of their armies to assist in your defenses. The ally would have clicked your castle and then selected ‘Backup’.
When you activate a new shield, backup armies runs back to their home. So notify them please