core counting is moved to the helper as most operations need this