a) get a piece of paper (stock certificate) showing how many stocks you have bought or
b) you buy online via a nominee account and the the number of stocks are credited to that account
(b) it the norm these days cos it makes selling the stock much easier and quicker than holding actual bits of paper)