The number of moles of KOH in the reaction is 5 moles.
To solve this problem
We need to use the balanced equation for the reaction. The balanced equation is:

One mole of KOH and one mole of HCl react to form one mole of KCl and one mole of water
as can be shown from the equation.
We can infer that since you have 5 moles of HCl, you also have 5 moles of KOH. This is due to the balanced equation's 1:1 KOH to HCl ratio.
So, the number of moles of KOH in the reaction is 5 moles.