count calculate