count the different religions followed by comparative military ranks of korea in military .
SELECT DISTINCT COUNT attr_open var_uri attr_close where brack_open var_x dbo_militaryRank dbr_Comparative_military_ranks_of_Korea sep_dot var_x dbo_religion var_uri brack_close