$query = "select count('$_POST[campo]') as $_POST[campo] from $_POST[tabla] group by('$_POST[campo]')";