Probably a good many... you can't reliably patrol borders that are hundreds, if not thousands of miles long... it is nigh impossible...
Unless you're guarding against a Pandemic. Then you can keep all of the air, water, and insects from a neighboring country out.