maybe you should be asking why you want to limit the records to 6, when the users clearly want to enter more.....
there are probably ways to limit it from the browse - I guess by disabling the insert button - something like (in 8.25);
p_web.ntBrowse(loc:divname,'disableButton','''[data-do="insert"]''')
you could do this at the point when you decide to allow, or not allow, the insert button.
Cheers
Bruce