A tank is fitted with 8 pipes, some of them that fill the tank and others that are waste pipe meant to empty the tank. Each of the pipes that fill the tank can fill it in 8 hours, while each of those that empty the tank can empty it in 6 hours. If all the pipes are kept open when the tank is full, it will take exactly 6 hours for the tank to empty. How many of these are fill pipes?