Add function to calculate the max number of cross class action slots available at a particular level.
Fix cross class action counter.