#include <iostream>
#include <string>

int main()
{
  while (true)
  {
    std::cout << "Eingabe: ";
    std::string text;
    std::getline(std::cin, text);
    if (text == "exit")
    {
      // Die Schleife verlassen
      std::cout << "Exit" << std::endl;
      break;
    }
    std::cout << "Anzahl: " << text.size() << std::endl;
  }
  std::cout << "Programmende erreicht" << std::endl;
  return 0;
}
