Check the number of nested case statements