Etymology
Today it means: the act of taking an inventory of merchandise etc. Full definition →
From stock + taking.
Etymology from Wiktionary, CC BY-SA 4.0.