Here is good trick to remember the total number of sharps in major keys in music:
Fat Crocodile Gets Donuts And Elephant Burgers
Note: Elephant burger is something I made up, because we humans consume veg/chicken burgers, if crocodiles had restaurants they'd definitely have such variety of choices.