There is no easy way to calculate the number of resonating structures. you might come across some sites and books where some formulae pertaining to this might be given, but they work only for some specific cases. just practice a lot and learn the exceptions and you will find it an easy job.
Try to make all possible resonating structure by delocalising pie bond or lone pair whichever in conjugation.