def count_sentences(text):
    """This function counts the number of sentences in a string of text
       using period, semicolon, question mark and exclamation mark as
       terminals.
    """
    count = 0
    terminals = '.;?!'
    for character in text:
        
        if character in terminals:
            count += 1

    return count