Component version of http://auchenberg.github.io/slotCount.js/