A mechanical device makes a clicking sound every 3 seconds. If the device was plugged on for 15 hours, calculate the number of times the device made the clicking sound.