fix #163 - widget count

check widget 'hidden' status before changing count
Merge pull request #164 from mlitbk/widgetcount

fix #163 - widget count