Dict and line counter