How many legitimate children did John have?