Number of covalent bonds an atom forms depends on the number of additional valence electrons it needs to reach a stable
Octet