Rational numbers counting (with inverse)