Valence is the number of covalent bonds an atom can form. It is usually equal to the number of electrons required to complete the atom's outermost (valence) electron shell.
Carbon has a valence of 4 and can form many types of large molecules.