beginning of post count code --KW