Fix how we get param count since it was java 8