def get_nseg(srf):
    """
    Returns number of segments in SRF file.
    srf: filepath to srf
    """
    with open(srf, "r") as sf:
        sf.readline()
        return int(sf.readline().split()[1])