How to posterize in compositor

I was wondering how to posterize a video in the compositor so it looks as if it only has 256 colors.

The image on the right is 256/8bit colors.


Thanks for the help