Remove unused function after dd37648c

SharedContextCount is no longer used after this commit