In May 1799, he taught piano to the daughters of Hungarian Countess Anna Brunsvik. During this time, he fell in love with the younger daughter Josephine.