pub fn count_entries(path: &Path) -> Result<usize>
Count the number of non-header entries in a session file (by counting non-empty lines and subtracting 1 for the header).
Returns 0 if the file is empty.