Most people would call that "robbery," not "burglary." Indeed; depending on the details, it can be "assault." It will be difficult to estimate the number of robberies and assaults that are foiled by any means--guns, other weapons, martial arts, trained dogs, etc. How do we determine how many crimes of any type are foiled by the the victim? Many victims are, themselves, violating the law when they're attacked. These people are hardly going to report the incidents to the police.