Add a default line counter function