To check if you have the correct amount of brackets in your code all you have to do is use a little counting and your fingers. For every open bracket { that you see put 1 finger up. For every } you see put 1 finger down. Once you have reached the last line, you should have 0 fingers up. If you have more fingers up, then you are missing some } or you have extra { in your code. 

This can also be applied to parenthesis ( ) following the same rules as before. 

Did this answer your question?