Answer :
usually, you count how any unpaired electrons an atom has for example sodium has one electron on its outer shell and therefore will form only one bond (usually) there are exceptions but that's usually how it's done hope that helps