def get_spo_count(spec):
    """Returns the number of spos in the spec file."""
    total = 0
    for f in spec["cfiles"]:
        for ff in spec["cfiles"][f]["functions"]:
            if "spos" in spec["cfiles"][f]["functions"][ff]:
                total += len(spec["cfiles"][f]["functions"][ff]["spos"])
    return total