Getting WordPress Flexslider Item Number

You can use

$item_nr = $query->current_post;

to give you the position within the loop (starts from 0).

If you need the first item to start with 1, you can use:

$item_nr = $query->current_post;
$item_nr++;

Total number of posts found:

$items_found = $query->found_posts;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)