Question: how many electrons does carbon contain in its outer valence shell?
Answer: Four covalent bonds. Carbon has four valence electrons and here a valence of four. Each hydrogen atom has one valence electron and is univalent.