title: Get function parameters count
body: <p>I'm wondering if there is a way in C++11 to get the number of arguments of a function?</p>
  
  <p>For example for the function <code>foo</code> I want <code>argCount</code> to be 3.</p>
  
  <pre><code>void foo(int a, int b, int c) {}
  
  int main() {
    size_t argCount = MAGIC(foo);
  }
  </code></pre>