Madison wrote, in the Federalist Papers (federalist 46 iirc) that basically the militia is everyone, that if we are attacked we can only field about 25-30,000 professional soldier, but there were over 300,000 gun owners that could be the militia if they needed to.
See Post 15