There are 13 tricks, the number of weeks in a quarter, is a phrase from the recitation song The Deck of Cards, recorded by country musician T. Texas Tyler, a variation of A Deck of Cards penned by an unknown author much earlier.
A deck of 52 standard playing cards includes thirteen ranks (Ace-King) of each of the four suits (diamonds, hearts, clubs, spades).
52 being the number of weeks in a year and 13 being the number of weeks contained in one-fourth of a year.
A Deck of Cards tells the story of about a soldier who pulls out a deck of cards while the Scripture is being read in the church.
The commander saw the soldier and summoned him to put away. When the service is over, the soldier was taken prisoner and was brought before the provost marshal.
The marshal demanded explanation and the soldier, in reference to there are 13 tricks, the number of weeks in a quarter considered the deck of cards as his almanac.
See full version and the significance of each card, as explained by the soldier.