got the counter working and the input to stop at 10 invoice lines.