more line counter API.