There was a seller of horses, who sold all his horses to three people. To the first man he sold half of all his horses and a half of a horse. To the second man he sold half of what he had left and a half of a horse. To the third man he again sold half of what was left and a half of a horse. How many horses did he have at first? (No horses were harmed!)