The system for naming oxyanions is far from optimal. Basically, the most common of the series of oxyanions is given the -ate name. So, for example, sulfate and phosphate are SO42- and PO43- while nitrate and chlorate are NO3- and ClO3-. Then the naming system use the common oxidation state as a base and name the per_ate, -ite, and hypo_ite based on the oxidation state of the -ate species.
So, while many per_ates have four oxygens, this is not always the case. Similarly, many -ate anions have three oxygens, but this is not a rule.