You are missing the argument called mood_typename in the server function. This is what the error is referring to.
So,
anvil.server.call('get_mood_type_count', "happy")
You are missing the argument called mood_typename in the server function. This is what the error is referring to.
So,
anvil.server.call('get_mood_type_count', "happy")