Effective anomalous Hall coefficient in an ultrathin Co layer sandwiched by Pt layers