It appears that the best routine would be

count32

incfsz var
bra doneproc
incfsz var + 1
bra doneproc
incfsz var + 2
bra doneproc
incf var + 3
bnc doneproc
bsf eflag,0


doneproc



but I can't test it tonight. Can anyone find anything wrong with this?