Man appears in court for raping 3-year-old girl