Set the row count to a fixed number. Leaving the Java side in place because it is used for testing.