I have a data.frame as follows :
Team_1 Team_2 Winning_Team
  A      B         A
  C      A         C
  .      .         .
  .      .         . 
I want count of matches won and matches played by each team. Output should be in named list format so that I am able to access the counts by name of the team.
Expected Output :
Team     Matches_Won   Matches_Played
 A            1            2
 B            0            1
Any help is highly appreciated.
