clean up definition counter