Computing the number of apparent double points of a surface