update the count
fix that it doesnt affect other tabs