Updating number of records