Create a DataFrame, replace all occurrences of the old value with the new value in the specified column, and count how many replacements were made.