Fix sentence count in search window not reflecting changes