export default function countLines(string: string, startIndex?: number): number;