prepare_maxlik_count_data function

Prepare count data for max-likelihood optimization fitting