if "Number of Kohn-Sham" in line:
                words = line.split()
                number_of_bands = int(words[-1])

                break