update inbox notification count when items are cleared

uses the least number of queries possible to calculate inbox size