def count_tabs(sbtab_string):
    """
    Counts how many SBtabs are in in a given string.

    Parameters
    ----------
    sbtab_string: str
        SBtab table or tables in string representation.
        
    Returns: int
        Amount of SBtab tables in given string.
    """
    counter = 0
    for row in sbtab_string.split('\n'):
        if row.startswith('!!SBtab'):
            counter += 1
    return counter
