The note below has been copypasted to the Reverse Engineering for Beginners book
I've always been interesting in what is average number of function arguments.
Just analysed many Windows 7 32-bit DLLs (crypt32.dll, mfc71.dll, msvcr100.dll, shell32.dll, user32.dll, d3d11.dll, mshtml.dll, msxml6.dll, sqlncli11.dll, wininet.dll, mfc120.dll, msvbvm60.dll, ole32.dll, themeui.dll, wmp.dll) (because they use stdcall convention, and so it is to grep disassembly output just by "RETN X").
This is heavily dependent on programming style and may be very different for other software products.
This open sourced site and this page in particular is hosted on GitHub. Patches, suggestions and comments are welcome.
→ [list of blog posts, my twitter/facebook]