@johnoak on WordPress.org
Created ticket #33622 on Core Trac:Category counter is not working for attachment post type