Count cores