The Lewis theory of chemical bonding is a theory that states that two atoms attract each other as they create a covalent bond by sharing a pair of electrons.
Lewis Theory of Chemical Bonding
Lewis claimed that shared electrons become part of each electron configuration.So, sharing effectively boosts each atom's electron count.