mm: Count the number of pages affected in change_protection()