Adds sentence counter and related tests.