Neil Patrick Harris was nominated for four Emmy Awards for his role as Marshall in How I Met Your Mother .
On television , he is known for playing the title character on Doogie Howser , M.D. , 1989 - 1993 , Marshall on How I Met Your Mother , 2005 - 2014 , for which he was nominated for four Emmy Awards , and Count Olaf on A Series of Unfortunate Events , 2017 onward .
Neil Patrick Harris