try counter

count correctly but still display error