count buttons