try to get cpu count from system