added count extraction from slot assignments