API GetRuneCount

Returns the rune count for the given slot.

count = GetRuneCount(slot)

Arguments

 * slot : number - Ranging from 1 to 6 which correspond to the available rune slots from left to right.

Returns

 * count : number - 1 if the rune is available and not on cooldown or 0 if the rune is on cooldown.

Details
To find out how many runes the player has available to spend:

total = 0 for i=1,6 do    total = total + GetRuneCount(i) end print(total)