Update mdb's count.