Ticking sound when car is not in motion

I have a 2004 5-speed Mini Cooper. I’ve noticed that sometimes when the car is stopped at a light it’ll start ticking like a clock. The ticking sound is coming from the back of the car and possibly from the passenger side. Anyone have any ideas?