Added so we only have to calculate the number of cards allowed once. This showed up as an expensive method when I previously profiled the code.