Write a program in C++ to read a text file (containing more than 500 words), count its alphabets, digits, special characters, capital and small letters, number prepositions and count for each word. Then you have to display a sorted list of word according to their occurrence count.