Add the NextInt() method.