use zend_parse_parameters() instead of ZEND_NUM_ARGS()

also don't use WRONG_PARAM_COUNT, zend_parse_parameters() provides nice
and clear error messages itself