Count number of parameters with unrolled typedef (#5)

Thanks to Charlie Shepherd for the report.