getting sentence lengths