Minerals are not equivalent to rocks. A rock is either an aggregate of one or more minerals, or not composed of minerals at all.
Rocks like limestone or quartzite are composed primarily of one mineral—calcite or aragonite in the case of limestone, and quartz in the latter case.
Other rocks can be defined by relative abundances of key (essential) minerals; a granite is defined by proportions of quartz, alkali feldspar, and plagioclase feldspar.
The other minerals in the rock are termed accessory, and do not greatly affect the bulk composition of the rock. Rocks can also be composed entirely of non-mineral material; coal is a sedimentary rock composed primarily of organically derived carbon.