Warn deprecation of num_pages page scope

Add warning for deprecation of num_pages page scope. This pull request is related to #284