It may be quicker to the count against an indexed column, if you have one e.g.

select count(primary_key_column) from minial.charges

That way, it should be able to get the data from the index without looking at the table.