fix #163 - widget count

check widget 'hidden' status before changing count