Where do you get 25,000?
Here. About half way through they talk about the Washington defenses in 1863 as having 60 forts, 93 batteries, 837 guns, and 23,000 men. That would have been about the time of Gettysburg.