http://leg1.state.va.us/cgi-bin/legp504.exe?000+cod+46.2-864
prob this code section. If you are out of work or dont have any bucks maybe the court will appoint a lawyer. If you have plus points on your license that would help. Too bad the cop wrote for that. sounds like you were just out having fun and no danger was involved.
I dont have the web site but Virginia offers those classes on line and you earn plus points. If you go that route take the class before the court date it might show the judge you are taking it seriously. I think it is eight hours if you go to the school in person, online I dont know how long.