How many electrons can carbon share?

Carbon has four valence electrons and therefore can make four bonds. Therefore it can share four electrons.