Doogie Howser on Doogie Howser , M.D . was played by Neil Patrick Harris .
On television , he is known for playing Doogie Howser 's next-door neighbor on Doogie Howser , M.D. , Barney Stitson on How I Met Your Mother , for which he was nominated for four Emmy Awards , and Count Olaf on A Series of Unfortunate Events .
Neil Patrick Harris