Question: how many electrons does hydrogen need to fill its outer shell?
Answer: Each of the hydrogen atoms has their 1 electron + 1 shared electron to fill their shell with 2 electrons. If oxygen bonds with 4 hydrogen atoms, it would have too many electrons to fit into its outer shell.