Add ones and zero count functiont to the package