trial code for setcount