contribution count code fixed