only take into account positional arguments count in related error messages
diff --git a/Python/ceval.c b/Python/ceval.c
index 2055acf..6e4911a 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3100,11 +3100,11 @@
if (!(co->co_flags & CO_VARARGS)) {
PyErr_Format(PyExc_TypeError,
"%U() takes %s %d "
- "argument%s (%d given)",
+ "positional argument%s (%d given)",
co->co_name,
defcount ? "at most" : "exactly",
- total_args,
- total_args == 1 ? "" : "s",
+ co->co_argcount,
+ co->co_argcount == 1 ? "" : "s",
argcount + kwcount);
goto fail;
}