Setting correct recordcount for further action