num.intercepts function

Extract number of intercepts