Seven Robbers loot the bank and hide the coins at a deserted factory. They decide to divide the money equally next morning. Two greedy robbers decided to cheat the others and reach the factory at night. They equally divided the coins between them, one coin left. So they called another robber and then they decided to divide equally among three. Sadly again one coin left. Same thing happened for 4th 5th and the 6th robber. However when 7th robber reached in the morning, they are able to divide the coins equally.

How many coins were there in total?