add the function of counting support vector