find the number of positive and negative roots