code: private function getPerMonth($months)
      {
          $per_month = [];
  
          $log = $this->logger->perMonth($months);
  
          foreach($log as $date => $hits) {
              array_push($per_month, [$date, $hits]);
          }
  
          return $per_month;
      }
docs: Retrieves the hits per month for given months back
  and saves them in array of arrays to be used in
  console table.
  
  @param $months
  @return array