extracted methods for bottle counting into its own class