For example: If I want to train a classifier (maybe SVM), how many sample do I need to collect? Is there a measure method for this?
It is not easy to know how many samples you need to collect. However you can follow these steps:
For solving a typical ML problem:
This method will work if your model is not suffering "high bias".
This video from Coursera's Machine Learning course, explains it.