You don't set number of rings. You set the ring length (how long before calls are sent to voicemail). Number of rings = ring length / ringtone length. Ring length is always set by the carrier. It's not a phone feature.
For GSM carriers there's a *61 feature code that may work for your carrier. You can Google the details. I don't have them memorized or handy.