human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, Name, Years, Matches, Goals
###Question: What is the Rank of the player with 158 Goals in more than 362 Matches?
gpt
SELECT COUNT Rank FROM table WHERE Goals = 158 AND Matches > 362