Adding a second module to count peaks

Trying a different algorithm