removed lock for count