In methane (CH4), there are four shared pairs of electrons. A single carbon atom in the center shares one pair of electrons with each of the four hydrogen atoms, resulting in four shared pairs.