Question: how many valence electrons does carbon have available for bonding to other atoms?
Answer: Carbon has four valence electrons, so it can achieve a full outer energy level by forming four covalent bonds.