major fix, avoid situation when dict in intelliRepository.py is empty and we wanted to count the items