; and (B) develop and publish best practices and recommendations relating to compensation of public defenders and panel attorneys. (b) Authorization of appropriations There are authorized to be appropriated to the Attorney General such sums as may be necessary to carry out this section. 6. State data collection (a) In general For any fiscal year beginning after the date of enactment of this Act, a State that receives funds under subpart 1 of part E of title I of the Omnibus Crime Control and Safe Streets Act of 1968 ( 34 U.S.C. 10151 et seq. ) may submit to the Office for Access to Justice of the Department of Justice data on, with respect to criminal cases heard by a court of the State or of a unit of local government in the State during that fiscal year, the number of cases for which a defendant was represented in court by a public defender or panel attorney, broken down by— (1) the most serious charge and the total number of secondary charges in each case; and (2) race, ethnicity, age, and gender of the defendant. (b) Applicable criminal offenses A State that elects to submit data under subsection (a) shall include data with respect to— (1) criminal offenses for which a term of imprisonment of more than 1 year may be imposed; (2) criminal offenses for which a term of imprisonment of 1 year or less may be imposed, including misdemeanors, traffic violations, and violations of municipal ordinances