<commit_before>package com.matthewtamlin.spyglass.library.core;

import java.lang.reflect.Method;
import java.util.Map;

public class ArgumentUtil {
	public static Map<Integer, Object> getArgsFromUseAnnotations(final Method method) {
		//TODO
		return null;
	}

	public static Integer getIndexOfUnannotatedArg(final Method method) {
		//TODO
		return null;
	}
}<commit_msg>Implemented method countArguments()<commit_after>package com.matthewtamlin.spyglass.library.core;

import java.lang.reflect.Method;
import java.util.Map;

import static com.matthewtamlin.java_utilities.checkers.NullChecker.checkNotNull;

public class ArgumentUtil {
	public static Map<Integer, Object> getArgsFromUseAnnotations(final Method method) {
		//TODO
		return null;
	}

	public static Integer getIndexOfUnannotatedArg(final Method method) {
		//TODO
		return null;
	}

	public static Integer countArguments(final Method method) {
		checkNotNull(method, "Argument \'method\' cannot be null.");

		return method.getParameterTypes().length;
	}
}
{'fraction_non_alphanumeric': 0.09375, 'fraction_numerical': 0.0, 'mean_word_length': 5.288343558282208, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6037729', 'n_tokens_mistral': 331, 'n_tokens_neox': 312, 'n_words': 76}