Switching to numSignature() function from ceuler library.