added functionality of 'exact number of cases'