i'm looking for a way to count extensions in a text file like 1.jpg 2.gif etc
i know i would have to $read it and inc but i'm lost