update master page count