counting tickets
cleanup