Shorten logic when in admin displaying post attachments count