BP Profile tab name changed but count missing

Hi there

I’ve successfully changed the name of the rtMedia tab from Media to Photos (users can only upload photos) using the code below, but for some reason, the count beside the title has disappeared. Any suggestions as to what I have missed/done wrong?

function bpcodex_rename_profile_tabs() {

  buddypress()->members->nav->edit_nav( array( 'name' => __( 'Photos', 'textdomain' ) ), 'media' );


add_action( ‘bp_actions’, ‘bpcodex_rename_profile_tabs’ );

With many thanks in advance.