def load_outcar(path):
    """ Opens OUTCAR file from 'path' and returns IOWrapper and number of lines """

    ### READ OUTCAR FILE
    # Open OUTCAR-file
    outcar = open(path, "r")

    # Count number of lines in OUTCAR-file
    number_of_lines = 0

    for line in outcar:
        number_of_lines += 1

    return outcar, number_of_lines