human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Name, Gain, Loss, Long, Avg/G
###Question: How much Avg/G has a Gain smaller than 1571, and a Long smaller than 46?
gpt
SELECT COUNT Avg/G FROM table WHERE Gain < 1571 AND Long < 46