prepare for count cost on client