fix count lines