Baryon Numbers
A Baryon Number is the additive quantum number of a system.
It is defined as B = ⅓(nq – n q)
where nq is the number of quarks and n q is the number of antiquarks.
Image

The above table is for Mesons (pions and kaons).
Baryon Numbers for Quarks can be found here.