How to order posts with specific tag name count in wordpress

I’m having a wordpress site, were posts have different tags. I need to get a solution for this. I’m having lot of tags for each posts. I would like order my posts in such a way that, posts with 3 specifc tags have to print first and posts with 2 specific tags print second and then 1.I would like to give three colors for posts with 3 specific tag, 2 specific tags and 1.