r.getx support idx other than 1
r.cnt give count of a parameter values