fixed #my_count to return array length when block is not given