Calcium sulfate (CaSO4) consists of one calcium atom (Ca), one sulfur atom (S), and four oxygen atoms (O). Therefore, calcium sulfate (CaSO4) has four oxygen atoms.