I have LIST 1 on which I need to do some summary statistic and put this in LIST 2, like shown below (only small sample to illustrate):

Column COUNTRIES_ON_TIME in LIST 2 comes from counting values = 0 in column DELIVERY_DELAY_DAYS in LIST 1
Column COUNTRIES_DELAYED in LIST 2 comes from counting values <> 0 in column DELIVERY_DELAY_DAYS in LIST 1
Column AVERAGE_DELAY_DAYS in LIST 2 comes from taking average from values <> 0 in column DELIVERY_DELAY_DAYS in LIST 1
What do I need to use (Flow, Fromulas?) to achieve what is in LIST 2?