<P> The Criminal Code was first enacted in July 1892 after being a pet project of the Minister of Justice of the time, Sir John Sparrow David Thompson . It was based on a drafted code called "the Stephen Code", written by Sir James Fitzjames Stephen as part of a Royal Commission in England in 1879, and influenced by the writings of Canadian Jurist George Burbidge . Canada's criminal code followed much of England's 1878 bill . However Canada wanted to have a more precise legal document that outlined all criminal laws . </P> <P> The main body of the Criminal Code is divided into the following major components: </P> <Ul> <Li> Part I--General </Li> <Li> Part II--Offences Against Public Order </Li> <Li> Part II. 1--Terrorism </Li> <Li> Part III--Firearms and Other Weapons </Li> <Li> Part IV--Offences Against the Administration of Law and Justice </Li> <Li> Part V--Sexual Offences, Public Morals and Disorderly Conduct </Li> <Li> Part VI--Invasion of Privacy </Li> <Li> Part VII--Disorderly Houses, Gaming and Betting </Li> <Li> Part VIII--Offences Against the Person and Reputation </Li> <Li> Part IX--Offences Against Rights of Property </Li> <Li> Part X--Fraudulent Transactions Relating to Contracts and Trade </Li> <Li> Part XI--Wilful and Forbidden Acts in Respect of Certain Property </Li> <Li> Part XII--Offences Relating to Currency </Li> <Li> Part XII. 1--Instruments and Literature For Illicit Drug Use </Li> <Li> Part XII. 2--Proceeds of Crime </Li> <Li> Part XIII--Attempts - Conspiracies - Accessories </Li> <Li> Part XIV--Jurisdiction </Li> <Li> Part XV--Special Procedure and Powers </Li> <Li> Part XVI--Compelling Appearance of an Accused Before a Justice and Interim Release </Li> <Li> Part XVII--Language of Accused </Li> <Li> Part XVIII--Procedure on Preliminary Inquiry </Li> <Li> Part XIX--Indictable Offences - Trial Without a Jury </Li> <Li> Part XIX. 1--Nunavut Court of Justice </Li> <Li> Part XX--Procedure in Jury Trials and General Provisions </Li> <Li> Part XX. 1--Mental Disorder </Li> <Li> Part XXI--Appeals - Indictable Offences </Li> <Li> Part XXI. 1--Applications for Ministerial Review - Miscarriages of Justice </Li> <Li> Part XXII--Procuring Attendance </Li> <Li> Part XXIII--Sentencing </Li> <Li> Part XXIV--Dangerous Offenders and Long - Term Offenders </Li> <Li> Part XXV--Effect and Enforcement of Recognizances </Li> <Li> Part XXVI--Extraordinary Remedies </Li> <Li> Part XXVII--Summary Convictions </Li> <Li> Part XXVIII--Miscellaneous </Li> </Ul> <Li> Part I--General </Li>

How many parts are in the criminal code of canada