I like 4, but often work on projects that use 2. I actually use an editor plugin (tpope/vim-sleuth) that automatically determines the existing indentation conventions for an open file.