How will I get to know how many number of figures do I need?

There is no rigid rule on the numbers of figures needed. It depends on what and how you wish to convey your idea or invention to the respective patent office. Any number that can explain your idea completely is more than enough. However, as a general rule, it is advisable to include as many “views” as possible needed to describe the independent claims (and the elements disclosed) of the patent.