How can i find count of capital laters , small laters and worlds in prolog : 
I need to read a txt file and find the number of capital laters, small letters and the number of words.Which way can i follow to do this?