Bugfixes in time_avg.

NEW : Output number of samples used to construct time averaged data
      from masked data.