Quantifying Information Flow with Beliefs