Implemented on-the-fly tally of message stats in the ContactDetailsFragment, along with buttons to choose the time ranges.