def count_all_characters_of_the_pyramid(characters):
    """Count all characters of the pyramid.

    Consider that the pyramid is solid and has no holes or rooms in it.
    """
    return -1 if not characters else sum((2*i+1)**2 for i in range(len(characters)))