Showing Post Counts of One’s (Author) Own in the admin post list

Have a look here for the solution (code needs optimizing, but it works):
Help to condense/optimize some working code

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