You can determine this by counting the number of electrons on the last orbital. If the number of electrons on the last orbital (valence electrons) is 8 then it satisfies the octet rule because the compound has mirrored the look of a noble gass or “neutral” charge.