implement line counter for points