Removed call to method only available in Java 8.

Turns out Method.getParameterCount() is java8 only, and I probably shouldn't be doing that since we haven't gotten all the java8 stuff to work yet.