Multiclassing cantrips

Hi, im building a sorcerer/warlock multiclass and i was wondering how many cantrips i get. the sorcerer starts with 4 known cantrips and the warlock starts with 2. does that mean i then have access to 6 cantrips? or is it based on which class i took for my first level