Если не в меню то примерно так.
<?xml version="1.0" encoding="utf-8"?>
<pakage.custom_view.ActionView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="36dp"
android:layout_height="36dp"
android:background="@android:color/transparent"
android:orientation="vertical"
android:padding="4dp">
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:background="@android:color/transparent"
tools:src="@drawable/ic_basket"/>
<TextView
android:id="@+id/counter"
style="@style/Counter.White"
android:layout_alignParentRight="true"
tools:text="1"/>
</pakage.custom_view.ActionView>
А в меню можно закостылить, вот пример:
<android.support.design.widget.AppBarLayout
android:id="@+id/toolbar_layout"
style="@style/ToolBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:elevation="0dp"
app:theme="@style/ToolBarStyle"
>
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
style="@style/ToolBarStyle"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:theme="@style/ToolBarStyle"
/>
</android.support.design.widget.AppBarLayout>
<TextView
android:id="@+id/main_counter"
style="@style/Counter.White"
android:layout_marginLeft="32dp"
android:layout_marginTop="@dimen/main_counter_top_margin"
android:clickable="false"
android:focusable="false"
app:layout_anchor="@+id/toolbar"
app:layout_anchorGravity="left|top"
/>