create necessary_tables_counter.pl