def count_running_cores(slots):
    """
    Counts cores in the running slots dataframe
    """
    count = 0
    if not slots.empty:
        count = slots.loc[slots["SlotType"] != "Partitionable", "Cpus"].sum()
    return count