You are tasked with counting the number of oak trees in a la…