remove non async function for counting labels