Added code to the stats activity so that button for counters closes the actvity and code for getting the intent that contains the list of stats from the main activity.
Adding code for the adapter in stats activity.