"if the accused admits such previous conviction or such previous conviction is proved against the accused the court shall take such conviction into account when imposing any sentence in respect of the offence of which the accused has been convicted"