def get_species_from_cf_headerline(line):
    """Get the number of species and the names fom a counts format header line.

    :param str line: The header line.

    :rtype: (int n_species, [str] sp_names)

    """
    sp_names = line.split()[2:]
    n_species = len(sp_names)

    if n_species < 2:
        print("Error: Not sufficiently many species (<2).\n")
        raise ValueError()

    return (n_species, sp_names)