This is an example of a system with several phases, which at ordinary temperatures are two solids and a gas. There are three chemical species (CaCO, CaO and CO) and one  reaction:
: CaCO  CaO + CO. 
The number of components is then 3 - 1 = 2.