move variables to counter declaration so we can test write ability at beginning of run rather than end of run
move variables to counter declaration so we can test write ability at beginning of run rather than end of run

ibest/HTStream,ibest/HTStream