09/06/14 ai wrote to calculate number of trials for each group at each phase