Wrote sentence finder and counter