simple line counter works