script counts the number of existing sentences