SR4A, page 61: "Optionally, gamemasters may choose to cap dice pools (including modifiers) at 20 dice, or at twice the sum of the character’s natural Attribute + Skill ratings, whichever is higher."
There is no dice pool cap mentioned in SR5 (the mechanic is covered by Limits).