sqlcounter problem