count sentences solution