It's rather simple, unless I am much mistaken.
For X Sort:
private int copyCounter = 0;
private int comparisonCounter = 0;
public void XSort(){
// Sorting logic start
....
//Perform comparison operation
comparisonCounter++;
....
//Perform copy operation
copyCounter++;
....
//Sorting logic ends
//Print the values of copyCounter here
}
Once your method completes execution you will have the required counts. Assuming you have all the sorts implemented as separate classes you will need to modify your sort method in individual classes as above.