An orbital can have a maximum of two electrons.
An electron can have only two spins clockwise or anticlockwise so, the two opposite spins can remain in one orbital together the third matching spin will be repelled out. Hence, capacity of orbital is maximum of 2 electrons only.