@pravsripad: If you count the number of elements (indices) in scipy.signal.argrelextrema (or scipy.signal.argrelmin, scipy.signal.argrelmax)you can have both, the extrema and the number of peaks.
http://docs.scipy.org/doc/scipy-dev/reference/generated/scipy.signal.argrelextrema.html#scipy.signal.argrelextrema