LLVM Static Instruction Count -stats -analyze -instcount not working

Hello,
I need to count static instructions in llvm. I am using following command,

opt -stats -analyze -instcount IR.ll

But it is printing following lines;

Printing analysis ‘Counts the various types of Instructions’ for function ‘cluster’:
Printing analysis ‘Counts the various types of Instructions’ for function ‘usage’:
Printing analysis ‘Counts the various types of Instructions’ for function ‘main’:
Printing analysis ‘Counts the various types of Instructions’ for function ‘find_nearest_point’:
Printing analysis ‘Counts the various types of Instructions’ for function ‘euclid_dist_2’:
Printing analysis ‘Counts the various types of Instructions’ for function ‘kmeans_clustering’:

Why it is not showing stats? Where I am doing mistake?
Please help.

Regards

I think you need to have Asserts enabled to get the -stats command line switch to dump anything.