Is there a tool which is able to parse my source code (fortran, C or C++) and return statistics such as the number of loops, the average loop size, the number of functions,
The magic Google term is "code metrics". Wikipedia has a list.