We consider a certain Sturm-Liouville eigenvalue problem with self-adjoint and non-separated boundary conditions. We derive an explicit formula for the oscillation number of any given eigenfunction.