I found this nifty idea on Pinterest to help you keep track of all your bobby pins!   Use an empty Tic Tac container!

I’ve also used empty Altoids tins to store my bobby pins.