Begining of an architecture for handling multiple pipes
Added function to count how many times a character is present in the string
cleaned main code
Still WIP