def count_paragraphs(soup):
    """Counts the number of paragraphs ('p' tags) on the page

    :param soup: The BeautifulSoup object
    :type soup: BeautifulSoup object
    :returns: Integer with the number of paragraphs
    """
    paragraphs = len(soup.find_all('p'))
    return paragraphs