how many valence electrons is an oxygen atom able to attract from other atoms

Since oxygen is not in the first period, it should follow the octect rule.

How many valence electrons does oxygen have? How many more would it need to make its valence shell an octect?