After couple of runs, some decent version for extracting number of patients